import request from '@/utils/request'

// 查询手机设备状态列表
export function listAccountinfo(query) {
  return request({
    url: '/business/device/list',
    method: 'get',
    params: query
  })
}

// 查询手机设备状态详细
export function getAccountinfo(id) {
  return request({
    url: '/business/device/' + id,
    method: 'get'
  })
}

// 新增手机设备状态
export function addAccountinfo(data) {
  return request({
    url: '/business/device',
    method: 'post',
    data: data
  })
}

// 修改手机设备状态
export function updateAccountinfo(data) {
  return request({
    url: '/business/device',
    method: 'put',
    data: data
  })
}

// 删除手机设备状态
export function delAccountinfo(id) {
  return request({
    url: '/business/device/' + id,
    method: 'delete'
  })
}